package com.bdqn.membersystem.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class GoodsPack implements Serializable {
    /**
    * 主键id
    */
    private Long id;

    /**
    * 套餐名称
    */
    private String goodsPackName;

    /**
    * 套餐编码
    */
    private String goodsPackCode;

    /**
    * 套餐类型id
    */
    private Integer typeId;

    /**
    * 套餐类型name
    */
    private String typeName;

    /**
    * 套餐总价（系统生成，保存时根据相关商品的优惠价*数量计算生成）
    */
    private BigDecimal totalPrice;

    /**
    * 状态（1、上架2、下架）
    */
    private Integer state;

    /**
    * 备注说明
    */
    private String note;

    /**
    * 库存数量
    */
    private Integer num;

    /**
    * 创建人
    */
    private String createdBy;

    /**
    * 创建时间
    */
    private Date createTime;

    /**
    * 最后更新时间
    */
    private Date lastUpdateTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoodsPackName() {
        return goodsPackName;
    }

    public void setGoodsPackName(String goodsPackName) {
        this.goodsPackName = goodsPackName;
    }

    public String getGoodsPackCode() {
        return goodsPackCode;
    }

    public void setGoodsPackCode(String goodsPackCode) {
        this.goodsPackCode = goodsPackCode;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", goodsPackName=").append(goodsPackName);
        sb.append(", goodsPackCode=").append(goodsPackCode);
        sb.append(", typeId=").append(typeId);
        sb.append(", typeName=").append(typeName);
        sb.append(", totalPrice=").append(totalPrice);
        sb.append(", state=").append(state);
        sb.append(", note=").append(note);
        sb.append(", num=").append(num);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", lastUpdateTime=").append(lastUpdateTime);
        sb.append("]");
        return sb.toString();
    }
}